package makai.ui.test;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
import makai.util.Toolkit;

/**
 * Used to test the locations of panels.
 * 
 * @author Krechevskoy
 */
public class WireframePanel extends JPanel {

    public WireframePanel() {
        this(new Color(24, 24, 24));
    }

    public WireframePanel(Color bg) {
        this(Toolkit.invertRGB(bg), bg);
    }

    public WireframePanel(Color fg, Color bg) {
        setForeground(fg);
        setBackground(bg);
    }
    
    @Override
    public void paint(Graphics g) {
        g.setColor(getBackground());
        g.fillRect(0, 0, getWidth(), getHeight());
        
        g.setColor(getForeground());
        //g.drawRect(0, 0, getWidth()-1, getHeight()-1);
        g.drawRect(3, 3, getWidth()-7, getHeight()-7);
    }
    
}
